package com.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ChenRule {
    @Bean
    public IRule myRule(){
        return new ChenRandomRule();//随机  负载均衡  默认是轮询,现在我们自定义
    }
}
